package com.xing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xing.Utils.Result;
import com.xing.dto.LiveRoomDTO;
import com.xing.dto.LiveRoomSaveDTO;
import com.xing.dto.LiveRoomUpdateDTO;
import com.xing.entity.LiveRoomEntity;
import com.xing.utils.PageData;

import java.util.List;


public interface LiveRoomService extends IService<LiveRoomEntity> {
    // 分页获取直播间信息
    PageData<LiveRoomDTO> getLiveRoomByPage(Integer pageNum, Integer pageSize);

    // 根据主播id获取主播信息
    LiveRoomDTO getLiveRoomByAnchorId(Long anchorId);

    // 新增直播间信息
    Result saveLiveRoom(LiveRoomSaveDTO liveRoomSaveOrUpdateDTO);

    // 更新直播间信息
    Result updateLiveRoomByRoomId(LiveRoomUpdateDTO liveRoomUpdateDTO);

    // 封禁直播间
    Result banLiveRoomByRoomId(Long liveRoomId);

    // 解禁直播间
    Result liftBanLiveRoomByRoomId(Long liveRoomId);

    // 注销直播间
    Result deleteLiveRoomByRoomId(Long liveRoomId);

    // 根据房间号获取直播间信息
    LiveRoomDTO getLiveRoomByRoomNumber(Long roomNumber);
}
